Problem Note 66917: The result of a binary operation in the IML procedure can be incorrect if the same matrix name is used on both sides of certain assignment statements
PROC IML might generate an incorrect result for an assignment statement when a binary operation is performed between a scalar or vector and a large matrix, and the result matrix has the same name as the scalar or vector in the expression. Binary operations include comparison operators (<, <=, >, >=), logical operators (&, |, ^), addition and subtraction (+, -), element maximum and minimum operators (<>, ><), and elementwise multiplication and division (#, /).
For example, if A is a scalar or a vector and B is a large matrix, the following can produce an incorrect result for A:
A=A#B;
To circumvent the problem, specify a new name for the result as shown below:
C=A#B;
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/IML | z/OS | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft® Windows® for x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise 32-bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8 Enterprise x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8 Pro 32-bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8 Pro x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise 32-bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8.1 Enterprise x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro 32-bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 8.1 Pro x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows 10 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2008 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2008 R2 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2008 for x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Datacenter | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Datacenter | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2012 R2 Std | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2012 Std | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2016 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Microsoft Windows Server 2019 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Enterprise 32 bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Enterprise x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Home Premium 32 bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Home Premium x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Professional 32 bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Professional x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Ultimate 32 bit | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Windows 7 Ultimate x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
64-bit Enabled AIX | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
64-bit Enabled Solaris | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
HP-UX IPF | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Linux for x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
Solaris for x64 | 15.1 | 15.3 | 9.4 TS1M6 | 9.4 TS1M8 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | alert |
Topic: | Analytics ==> Matrix Programming SAS Reference ==> Procedures ==> IML
|
Date Modified: | 2020-11-30 08:53:41 |
Date Created: | 2020-11-10 12:17:17 |